package com.gxa.employment.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.employment.entity.pojo.Manager;
import com.gxa.employment.entity.vo.ManagerPermissionVo;
import com.gxa.employment.entity.vo.RateStatisticsVo;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


/**
 * <p>
 * 管理员 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-03-25
 */
public interface ManagerMapper extends BaseMapper<Manager> {
    @Select("SELECT perm_id, perm_name, perm_url, perm_type, perm_pid, perm_remark, manager_name, manager_phone, manager_id, deleted, created, updated FROM v_manager_permission where manager_id = #{managerId}")
    List<ManagerPermissionVo> selectPermissionByManagerId(Integer managerId);

}
